<?php
$y = date('Y');
//$y = 2020;
if (date('L', strtotime("{$y}-1-1")) == 1) {
    printf("%d年是闰年。", $y);
} else {
    printf("%d年不是闰年。", $y);

}

